package com.zijin.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.zijin.entity.SkypeBig32Account;
import com.zijin.mapper.SkypeBig32AccountMapper;
import com.zijin.service.SkypeBig32AccountService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * skype大额转出32人账户信息Service实现
 * */
@Service
public class SkypeBig32AccountServiceImpl extends ServiceImpl<SkypeBig32AccountMapper, SkypeBig32Account> implements SkypeBig32AccountService {

    @Autowired
    private SkypeBig32AccountMapper skypeBig32AccountMapper;
    /**
     * 根据卡号查找账户信息
     * */
    @Override
    public List<SkypeBig32Account> findAccountByBankNo(String tradeBankNo) {
        LambdaQueryWrapper<SkypeBig32Account> queryWrapper = Wrappers.<SkypeBig32Account>lambdaQuery();
        queryWrapper.eq(SkypeBig32Account::getTradeBankNo, tradeBankNo);
        List<SkypeBig32Account> skypeBig32Accounts = skypeBig32AccountMapper.selectList(queryWrapper);
        return skypeBig32Accounts;
    }
}
